package com.linsen.erp.admin.provider.vo;

import com.linsen.core.common.tree.TreeNodeAbstract;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @Description:
 * @ProjectName: erp
 * @Package: com.linsen.erp.admin.provider.vo
 * @ClassName: MenuVO
 * @Author: zhaoyong
 * @Email: zy765203718@gmail.com
 * @Date: 2023/7/25 12:21
 * @Version: 1.0
 */
@Data
@ApiModel(value = "菜单")
public class MenuVO extends TreeNodeAbstract<MenuVO> implements Serializable {

    @ApiModelProperty(value = "id")
    private String id;
    @ApiModelProperty(value = "上级ID")
    private String pid;
    @ApiModelProperty(value = "上级菜单名称")
    private String parentName;
    @ApiModelProperty(value = "菜单类型 1，目录；2，菜单；3，按钮")
    private Integer type;
    @ApiModelProperty(value = "菜单名称")
    private String name;
    @ApiModelProperty(value = "菜单图标")
    private String icon;
    @ApiModelProperty(value = "路由标识")
    private String router;
    @ApiModelProperty(value = "权限标识")
    private String permission;
    @ApiModelProperty(value = "排序")
    private Integer priority;

    @ApiModelProperty("创建操作人")
    private String createBy;
    @ApiModelProperty("创建操作人username")
    private String createByName;
    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;
    @ApiModelProperty("更新操作人")
    private String updateBy;
    @ApiModelProperty("更新操作人username")
    private String updateByName;
    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;
}